package com.woniuxy.woniufp.trade.mapper;

import com.woniuxy.woniufp.common.model.dto.trade.BorrowRecordQuery;
import com.woniuxy.woniufp.trade.entity.BorrowRecord;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BorrowRecordMapper extends Mapper<BorrowRecord> {
    @Select("select count(*) from borrow_record where user_code = #{value} ")
    int selectCountByUserCode(String userCode);

    List<BorrowRecord> selectBorrowRecordByCons(BorrowRecordQuery borrowRecordQuery);
}